package com.yby.mall.product.feign;

import com.yby.common.dto.SeckillSkuRelationDto;
import com.yby.common.dto.SkuFullReductionDto;
import com.yby.common.dto.SkuLadderDto;
import com.yby.common.dto.SpuBoundsDto;
import com.yby.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("mall-coupon")
public interface CouponFeignService {
    @PostMapping("/coupon/spubounds/save")
    public R saveSpubounds(@RequestBody SpuBoundsDto spuBoundsDto);

    @PostMapping("/coupon/skuLadder/save")
    public R saveSkuLadder(@RequestBody SkuLadderDto skuLadderDto);

    @PostMapping("/coupon/skuFullReduction/save")
    public R saveSkuFullReduction(@RequestBody SkuFullReductionDto skuFullReductionDto);

    @PostMapping("/coupon/seckillSkuRelation/save")
    public R saveSeckillSkuRelation(@RequestBody SeckillSkuRelationDto seckillSkuRelationDto);
}
